import request from '@/utils/request'

export function userLogin(body) {
  return request.post('/login', body)
}

export function userRegister(body) {
  return request.post('/register', body)
}

export function recordIp(body) {
  return request.post('/user_ip', body)
}

export function updateAvatar(body) {
  return request.put('/userData', body)
}

export function updatePassword(body) {
  return request.put('/userData', body)
}

export function getUserData() {
  return request.get('/userData')
}
